angular.module('ddapp', [
	'ngAnimate',
	'ui.router',
	'ddapp.menu',
	'ddapp.servant',
	'ddapp.order',
	'ddapp.service',
	'ddapp.model',
	'ddapp.dishes',
])

.run(
  [          '$rootScope', '$state', '$stateParams',
    function ($rootScope,   $state,   $stateParams) {
    $rootScope.$state = $state;
    $rootScope.$stateParams = $stateParams;
    }
  ]
)

.config(
  [          '$stateProvider', '$urlRouterProvider','$locationProvider',
    function ($stateProvider,   $urlRouterProvider,$locationProvider) {
      $urlRouterProvider
        .otherwise('/menu');
    }
  ]
);
